#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util

import header
import footer

class About(webapp.RequestHandler):


    def get(self):
        self.response.out.write(header.head)
        self.response.out.write("""
         <div class="content">
    <div class="content_resize">
      <div class="mainbar">
        <div class="article" id="proposal">
          <h2><span>Project Proposal: Social HootSpot</span></h2>
          <div class="clr"></div>
          <p><span class="date">October 21, 2011</span> &nbsp;|&nbsp; Posted by the Team</a></p>
          <p> 
	Team Members:<br />
<br />
        Devin White<br />
        Balazs Makany<br />
        Brandon Madura<br /></font>
<br />
    <ol>What is exactly the function of your tool? That is, what will it do?<br />
    <blockquote>Our tool will rank and return real-time social hotspots in a user queried area within a specific physical radius.<br />
        Besides the ranked locations, the user also will get specific special or discount information about the locations, in order to aid the decision making process of where to go.</blockquote>
        </ol>
   <ol> Why would we need such a tool and who would you expect to use it and benefit from it?<br />
        <blockquote>Social media is getting more involved indicating, where do people meet and socialize. Using such "check-in" data, we can provide ranked information about where do interesting and fun event happens.</blockquote></ol>
    <ol>Does this kind of tools already exist? If similar tools exist, how is your tool different from them? Would people care about the difference? How hard is it to build such a tool? What is the challenge?</ol>
        <blockquote>We are not aware of such tool, that gives you social hotspot locations with available specials or discounts.
        This tool will help people find a suitable entertainment environments for their needs. Different social settings are required for quality entertainment, relaxation time or for example a suitable date location.
        In a later version (out of the scope of this project), this application can be ported to a mobile device, providing a two-way real-time communication between the user and the community of users for instantaneous on-the-fly plan changing.
        One of the major challenge is, that this tool relies on other user-provided inputs. In the later versions (out of the scope of this project), providing a historical analysis or trending might help the precision of this tool.</blockquote></ol>
    <ol>How do you plan to build it?
        <blockquote>We are planning to incorporate three (3) different APIs for this project, to increase our retrieval and relevance measures.
            Facebook Checkin (Places)
            Twitter REST
            findmespecials.com
        For initial data-set, we build our "heatmap" from data gathered from Facebook and Twitter. After acquiring such information, we can query findmespecials.com to map our results to actual specials or discounts in the given area.
        We provide the user a list of the following information:
            Name and location of listed social hotspots
            Number of people indicated to be present
            Available deals at the location</blockquote></ol>
    <ol>What existing resources can you use?
        <blockquote>Besides the APIs listed above, we are going to rely on web technology and people's social posting habits. Preliminary scouting indicates, that people do post/tweet about their location.</blockquote></ol>
    <ol>How will you demonstrate the usefulness of your tool?
        <blockquote>At the end of the project, we can conduct a mini case study of the actual benefits of the application, by observing a time frame and location activity.
        We could also go visit the places marked as hotspots and then visit surrounding establishments to see if there are more people at the hotspot that surrounding areas. Also we could see if the specials we found match what the establishment has.</blockquote></ol>
    <ol>A brief timeline including a description of what exactly you will show us at the Project Checkpoint.
        <blockquote>By November 5 we are going to have our beta version of the web interface for previewing our offered features.</blockquote>
        <blockquote>By November 15, we will have the web interface completed and show a map of hotspots based on a user input.</blockquote>
        <blockquote>By November 22, we will have 2 slides about our project. Majority of the functions should be correctly implemented at this point.</blockquote>
        <blockquote>By December 1, we should have only minor improvements or extra features left from the project.</blockquote>
        <blockquote>December 12 -  Final Product Delivery Day. All the functions should work seamlessly, error free and ready for deployment.</blockquote></ol>
</p>
          
        </div>
      </div>
      <div class="sidebar">
        <div class="gadget">
          <div class="clr"></div>
        </div>
        <div class="gadget">
          <div class="clr"></div>
				<a href = "#proposal">Proposal</a>
				</div>
				</div>
				<div class="clr"></div>
			</div>
		</div>
		<div class="fbg">
			<div class="fbg_resize">
				<div class="col c1">
				</div>
				<div class="col c3">
				</div>
				<div class="clr"></div>
			</div>
		</div>
  
  
  
  
  
  
 
        
        """)
        
        self.response.out.write(footer.foot)
        

if __name__ == '__main__':
    main()
